<template>
  <div id="main">
    <div class="market">
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="试点城市细分行业数字化服务资源库服务商" name="first">
          <el-row class="JNPF-common-search-box" :gutter="16">
            <el-form @submit.native.prevent>
              <el-col :span="6">
                <el-form-item label="产品名称">
                  <el-input v-model="query.tableField107_productName" placeholder="请输入" clearable></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label="服务行业">
                  <JnpfSelect v-model="query.tableField107_serviceIndustry" placeholder="请选择" clearable
                              :options="tableField107_serviceIndustryOptions"
                              :props="tableField107_serviceIndustryProps" multiple>
                  </JnpfSelect>
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label="产品类别(大类)">
                  <JnpfSelect v-model="query.tableField107_productType" placeholder="请选择" clearable
                              :options="tableField107_productTypeOptions"
                              :props="tableField107_productTypeProps" multiple>
                  </JnpfSelect>
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item>
                  <el-button type="primary" icon="el-icon-search" @click="search()">查询</el-button>
                  <el-button icon="el-icon-refresh-right" @click="reset1()">重置</el-button>
                </el-form-item>
              </el-col>
            </el-form>
          </el-row>
          <div class="JNPF-common-layout-main JNPF-flex-main">
            <JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' :span-method="arraySpanMethod">
              <el-table-column prop="enterpriseName" label="单位名称" align="left"></el-table-column>
              <el-table-column prop="enterpriseCreditCode" label="信用代码" align="left"></el-table-column>
              <el-table-column prop="enterpriseAddress" label="单位地址" align="left"></el-table-column>
              <el-table-column prop="enterpriseStart" label="成立时间" align="left"></el-table-column>
              <el-table-column prop="registeredCapital" label="注册资本" align="left">
                <template slot-scope="scope" v-if="scope.row.registeredCapital">
                  <JnpfNumber v-model="scope.row.registeredCapital" :thousands="false"/>
                </template>
              </el-table-column>
              <!--                <el-table-column prop="contactPerson" label="联系人" align="left"></el-table-column>
                              <el-table-column prop="contactInformation" label="联系方式" align="left"></el-table-column>
                              <el-table-column prop="email" label="电子邮箱" align="left"></el-table-column>-->
              <el-table-column prop="tableField107" label="产品信息" align="center">
                <el-table-column prop="tableField107-child-first" width="1px" label-class-name="table-child-first">
                  <template slot-scope="scope" v-if="!scope.row.top">
                    <div class="child-table-column">
                      <template v-if="!scope.row.tableField107Expand">
                        <tr v-for="(item, index) in scope.row.tableField107.slice(0, 2)"
                            class="child-table__row" :key="index">
                          <td class="td-child-first">
                            <div class="cell"></div>
                          </td>
                          <td class="td-flex-1">
                            <div class="cell">
                              {{ item.productName }}
                            </div>
                          </td>
                          <td class="td-flex-1">
                            <div class="cell">
                              {{ item.serviceIndustry }}
                            </div>
                          </td>
                          <td class="td-flex-1">
                            <div class="cell">
                              {{ item.productType }}
                            </div>
                          </td>
                        </tr>
                      </template>
                      <template v-if="scope.row.tableField107Expand">
                        <tr v-for="(item, index) in scope.row.tableField107" class="child-table__row" :key="index">
                          <td class="td-child-first">
                            <div class="cell"></div>
                          </td>
                          <td class="td-flex-1">
                            <div class="cell">
                              {{ item.productName }}
                            </div>
                          </td>
                          <td class="td-flex-1">
                            <div class="cell">
                              {{ item.serviceIndustry }}
                            </div>
                          </td>
                          <td class="td-flex-1">
                            <div class="cell">
                              {{ item.productType }}
                            </div>
                          </td>
                        </tr>
                      </template>
                      <div class="expand-more-btn" v-if="scope.row.tableField107.length > 2">
                        <el-button v-if="scope.row.tableField107Expand" type="text"
                                   @click="scope.row.tableField107Expand=!scope.row.tableField107Expand">隐藏部分
                        </el-button>
                        <el-button v-if="!scope.row.tableField107Expand" type="text"
                                   @click="scope.row.tableField107Expand=!scope.row.tableField107Expand">加载更多
                        </el-button>
                      </div>
                    </div>
                  </template>
                </el-table-column>
                <el-table-column prop="tableField107-productName" label="产品名称" width="150"/>
                <el-table-column prop="tableField107-serviceIndustry" label="服务行业" width="150"/>
                <el-table-column prop="tableField107-productType" label="产品类别(大类)" width="150"/>
              </el-table-column>
              <el-table-column label="操作" align="center" width="100">
                <template slot-scope="scope">
                  <el-button type="text" @click="goDetail(scope.row.id)">详情
                  </el-button>
                </template>
              </el-table-column>
            </JNPF-table>
            <pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
                        @pagination="initData"/>
          </div>
        </el-tab-pane>
        <el-tab-pane label="试点城市细分行业数字化服务后备资源库服务商" name="second">
          <el-row class="JNPF-common-search-box" :gutter="16">
            <el-form @submit.native.prevent>
              <el-col :span="6">
                <el-form-item label="产品名称">
                  <el-input v-model="query.tableField107_productName" placeholder="请输入" clearable></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label="服务行业">
                  <JnpfSelect v-model="query.tableField107_serviceIndustry" placeholder="请选择" clearable
                              :options="tableField107_serviceIndustryOptions"
                              :props="tableField107_serviceIndustryProps" multiple>
                  </JnpfSelect>
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label="产品类别(大类)">
                  <JnpfSelect v-model="query.tableField107_productType" placeholder="请选择" clearable
                              :options="tableField107_productTypeOptions"
                              :props="tableField107_productTypeProps" multiple>
                  </JnpfSelect>
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item>
                  <el-button type="primary" icon="el-icon-search" @click="search()">查询</el-button>
                  <el-button icon="el-icon-refresh-right" @click="reset2()">重置</el-button>
                </el-form-item>
              </el-col>
            </el-form>
          </el-row>
          <div class="JNPF-common-layout-main JNPF-flex-main">
            <JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' :span-method="arraySpanMethod">
              <el-table-column prop="enterpriseName" label="单位名称" align="left"></el-table-column>
              <el-table-column prop="enterpriseCreditCode" label="信用代码" align="left"></el-table-column>
              <el-table-column prop="enterpriseAddress" label="单位地址" align="left"></el-table-column>
              <el-table-column prop="enterpriseStart" label="成立时间" align="left"></el-table-column>
              <el-table-column prop="registeredCapital" label="注册资本" align="left">
                <template slot-scope="scope" v-if="scope.row.registeredCapital">
                  <JnpfNumber v-model="scope.row.registeredCapital" :thousands="false"/>
                </template>
              </el-table-column>
              <!--                <el-table-column prop="contactPerson" label="联系人" align="left"></el-table-column>
                              <el-table-column prop="contactInformation" label="联系方式" align="left"></el-table-column>
                              <el-table-column prop="email" label="电子邮箱" align="left"></el-table-column>-->
              <el-table-column prop="tableField107" label="产品信息" align="center">
                <el-table-column prop="tableField107-child-first" width="1px" label-class-name="table-child-first">
                  <template slot-scope="scope" v-if="!scope.row.top">
                    <div class="child-table-column">
                      <template v-if="!scope.row.tableField107Expand">
                        <tr v-for="(item, index) in scope.row.tableField107.slice(0, 2)"
                            class="child-table__row" :key="index">
                          <td class="td-child-first">
                            <div class="cell"></div>
                          </td>
                          <td class="td-flex-1">
                            <div class="cell">
                              {{ item.productName }}
                            </div>
                          </td>
                          <td class="td-flex-1">
                            <div class="cell">
                              {{ item.serviceIndustry }}
                            </div>
                          </td>
                          <td class="td-flex-1">
                            <div class="cell">
                              {{ item.productType }}
                            </div>
                          </td>
                        </tr>
                      </template>
                      <template v-if="scope.row.tableField107Expand">
                        <tr v-for="(item, index) in scope.row.tableField107" class="child-table__row" :key="index">
                          <td class="td-child-first">
                            <div class="cell"></div>
                          </td>
                          <td class="td-flex-1">
                            <div class="cell">
                              {{ item.productName }}
                            </div>
                          </td>
                          <td class="td-flex-1">
                            <div class="cell">
                              {{ item.serviceIndustry }}
                            </div>
                          </td>
                          <td class="td-flex-1">
                            <div class="cell">
                              {{ item.productType }}
                            </div>
                          </td>
                        </tr>
                      </template>
                      <div class="expand-more-btn" v-if="scope.row.tableField107.length > 2">
                        <el-button v-if="scope.row.tableField107Expand" type="text"
                                   @click="scope.row.tableField107Expand=!scope.row.tableField107Expand">隐藏部分
                        </el-button>
                        <el-button v-if="!scope.row.tableField107Expand" type="text"
                                   @click="scope.row.tableField107Expand=!scope.row.tableField107Expand">加载更多
                        </el-button>
                      </div>
                    </div>
                  </template>
                </el-table-column>
                <el-table-column prop="tableField107-productName" label="产品名称" width="150"/>
                <el-table-column prop="tableField107-serviceIndustry" label="服务行业" width="150"/>
                <el-table-column prop="tableField107-productType" label="产品类别(大类)" width="150"/>
              </el-table-column>
              <el-table-column label="操作" align="center" width="100">
                <template slot-scope="scope">
                  <el-button type="text" @click="goDetail(scope.row.id)">详情
                  </el-button>
                </template>
              </el-table-column>
            </JNPF-table>
            <pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
                        @pagination="initData"/>
          </div>
        </el-tab-pane>
      </el-tabs>
    </div>
    <JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh"/>
    <ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download"/>
    <ImportBox v-if="uploadBoxVisible" ref="UploadBox" @refresh="initData"/>
    <Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false"/>
    <ToFormDetail v-if="toFormDetailVisible" ref="toFormDetail" @close="toFormDetailVisible = false"/>
    <SuperQuery v-if="superQueryVisible" ref="SuperQuery" :columnOptions="superQueryJson"
                @superQuery="superQuery"/>
  </div>
</template>

<script>

import request from '@/utils/request'
import {mapGetters} from "vuex";
import {getDictionaryDataSelector} from '@/api/systemData/dictionary'
import JNPFForm from './form'
import Detail from './Detail'
import ExportBox from '@/components/ExportBox'
import ToFormDetail from '@/views/basic/dynamicModel/list/detail'
import {getDataInterfaceRes} from '@/api/systemData/dataInterface'
import {getConfigData} from '@/api/onlineDev/visualDev'
import {getDefaultCurrentValueUserIdAsync} from '@/api/permission/user'
import {getDefaultCurrentValueDepartmentIdAsync} from '@/api/permission/organize'
import columnList from './columnList'
import {thousandsFormat} from "@/components/Generator/utils/index"
import SuperQuery from '@/components/SuperQuery'
import superQueryJson from './superQueryJson'

export default {
  components: {
    JNPFForm,
    Detail,
    ExportBox, ToFormDetail, SuperQuery
  },
  data() {
    return {
      activeName: 'first',
      activeIndex: '3-2',
      keyword: '',
      expandsTree: true,
      refreshTree: true,
      toFormDetailVisible: false,
      expandObj: {},
      columnOptions: [],
      mergeList: [],
      exportList: [],
      columnList,

      showAll: false,
      superQueryVisible: false,
      superQueryJson,
      uploadBoxVisible: false,
      detailVisible: false,
      query: {
        enterpriseName: undefined,
        enterpriseCreditCode: undefined,
        enterpriseAddress: undefined,
        enterpriseStart: undefined,
        tableField107_productName: undefined,
        tableField107_serviceIndustry: undefined,
        tableField107_productType: undefined,
        tableField127_serverType: undefined,
      },
      treeProps: {
        children: 'children',
        label: 'fullName',
        value: 'id',
        isLeaf: 'isLeaf'
      },
      list: [],
      listLoading: true,
      total: 0,
      queryData: {

      },
      listQuery: {
        superQueryJson: '',
        currentPage: 1,
        pageSize: 20,
        sort: "desc",
        sidx: "creatortime",
      },
      formVisible: false,
      flowVisible: false,
      flowListVisible: false,
      flowList: [],
      exportBoxVisible: false,
      tableField107_serviceIndustryOptions: [{"fullName": "汽车制造业", "id": "1"}, {
        "fullName": "轻工纺织业",
        "id": "2"
      }, {"fullName": "计算机、通信和其他电子设备制造业", "id": "3"}],
      tableField107_serviceIndustryProps: {"label": "fullName", "value": "id"},
      tableField107_productTypeOptions: [{"fullName": "软件系统及SaaS化应用类", "id": "1"}, {
        "fullName": "基础设施类",
        "id": "2"
      }, {"fullName": "生产设备类", "id": "3"}],
      tableField107_productTypeProps: {"label": "fullName", "value": "id"},
      interfaceRes: {},
    }
  },
  computed: {
    ...mapGetters(['userInfo']),
    menuId() {
      return this.$route.meta.modelId || ''
    }
  },
  created() {
    this.handleClick();
    this.getColumnList();
    this.initSearchDataAndListData();
    this.queryData = JSON.parse(JSON.stringify(this.query))
  },
  methods: {
    handleClick(tab, event) {
      if (this.activeName == 'first') {
        this.query.tableField107_productName = null
        this.query.tableField107_serviceIndustry = null
        this.query.tableField107_productType = null
        this.query.tableField127_serverType = '试点城市细分行业数字化服务资源库服务商';
        this.search()
      } else {
        this.query.tableField107_productName = null
        this.query.tableField107_serviceIndustry = null
        this.query.tableField107_productType = null
        this.query.tableField127_serverType = '试点城市细分行业数字化服务后备资源库服务商';
        this.search()
      }
    },
    handleSelect(key, keyPath) {
    },
    redirectTologin() {
      this.$router.push({path: '/login', query: {redirect: '/'}});
    },
    redirectToblogin() {
      window.open("/blogin");
    },
    redirectToJFY() {
      window.open("https://www.fjjfypt.com/jfy/home/index", "_blank");
    },
    goTo(path) {
      this.$router.push(path);
    },
    toDetail(defaultValue, modelId) {
      if (!defaultValue) return
      getConfigData(modelId).then(res => {
        if (!res.data || !res.data.formData) return
        let formData = JSON.parse(res.data.formData)
        formData.popupType = 'general'
        this.toFormDetailVisible = true
        this.$nextTick(() => {
          this.$refs.toFormDetail.init(formData, modelId, defaultValue)
        })
      })
    },
    toggleTreeExpand(expands) {
      this.refreshTree = false
      this.expandsTree = expands
      this.$nextTick(() => {
        this.refreshTree = true
        this.$nextTick(() => {
          this.$refs.treeBox.setCurrentKey(null)
        })
      })
    },
    filterNode(value, data) {
      if (!value) return true;
      return data[this.treeProps.label].indexOf(value) !== -1;
    },
    loadNode(node, resolve) {
      const nodeData = node.data
      const config = {
        treeInterfaceId: "",
        treeTemplateJson: []
      }
      if (config.treeInterfaceId) {
        //这里是为了拿到参数中关联的字段的值，后端自行拿
        if (config.treeTemplateJson && config.treeTemplateJson.length) {
          for (let i = 0; i < config.treeTemplateJson.length; i++) {
            const element = config.treeTemplateJson[i];
            element.defaultValue = nodeData[element.relationField] || ''
          }
        }
        //参数
        let query = {
          paramList: config.treeTemplateJson || [],
        }
        //接口
        getDataInterfaceRes(config.treeInterfaceId, query).then(res => {
          let data = res.data
          if (Array.isArray(data)) {
            resolve(data);
          } else {
            resolve([]);
          }
        })
      }
    },
    getColumnList() {
      // 没有开启权限
      this.columnOptions = this.transformColumnList(this.columnList)
    },
    transformColumnList(columnList) {
      let list = []
      for (let i = 0; i < columnList.length; i++) {
        const e = columnList[i];
        if (!e.prop.includes('-')) {
          list.push(e)
        } else {
          let prop = e.prop.split('-')[0]
          let label = e.label.split('-')[0]
          let vModel = e.prop.split('-')[1]
          let newItem = {
            align: "center",
            jnpfKey: "table",
            prop,
            label,
            children: []
          }
          e.vModel = vModel
          if (!this.expandObj.hasOwnProperty(`${prop}Expand`)) this.$set(this.expandObj, `${prop}Expand`, false)
          if (!list.some(o => o.prop === prop)) list.push(newItem)
          for (let i = 0; i < list.length; i++) {
            if (list[i].prop === prop) {
              list[i].children.push(e)
              break
            }
          }
        }
      }
      this.getMergeList(list)
      this.getExportList(list)
      return list
    },
    arraySpanMethod({column}) {
      for (let i = 0; i < this.mergeList.length; i++) {
        if (column.property == this.mergeList[i].prop) {
          return [this.mergeList[i].rowspan, this.mergeList[i].colspan]
        }
      }
    },
    getMergeList(list) {
      let newList = JSON.parse(JSON.stringify(list))
      newList.forEach(item => {
        if (item.children && item.children.length) {
          let child = {
            prop: item.prop + '-child-first'
          }
          item.children.unshift(child)
        }
      })
      newList.forEach(item => {
        if (item.children && item.children.length) {
          item.children.forEach((child, index) => {
            if (index == 0) {
              this.mergeList.push({
                prop: child.prop,
                rowspan: 1,
                colspan: item.children.length
              })
            } else {
              this.mergeList.push({
                prop: child.prop,
                rowspan: 0,
                colspan: 0
              })
            }
          })
        } else {
          this.mergeList.push({
            prop: item.prop,
            rowspan: 1,
            colspan: 1
          })
        }
      })
    },
    getExportList(list) {
      let exportList = []
      for (let i = 0; i < list.length; i++) {
        if (list[i].jnpfKey === 'table') {
          for (let j = 0; j < list[i].children.length; j++) {
            exportList.push(list[i].children[j])
          }
        } else {
          exportList.push(list[i])
        }
      }
      this.exportList = exportList
    },
    goDetail(id) {
      this.detailVisible = true
      this.$nextTick(() => {
        this.$refs.Detail.init(id)
      })
    },
    sortChange({column, prop, order}) {
      this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc'
      this.listQuery.sidx = !order ? '' : prop
      this.initData()
    },
    async initSearchDataAndListData() {
      await this.initSearchData()
      this.initData()
    },
    //初始化查询的默认数据
    async initSearchData() {
    },
    initData() {
      this.listLoading = true;
      let _query = {
        ...this.listQuery,
        ...this.query,
        keyword: this.keyword,
        dataType: 0,
        menuId: this.menuId,
        moduleId: '510204237989281797',
        type: 1,
      };
      request({
        url: `/api/example/Fz_supply_market/getList`,
        method: 'post',
        data: _query
      }).then(res => {
        var _list = res.data.list;
        this.list = _list.map(o => ({
          ...o,
          ...this.expandObj,
        }))
        this.total = res.data.pagination.total
        this.listLoading = false
      })
    },
    handleDel(id) {
      this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
        type: 'warning'
      }).then(() => {
        request({
          url: `/api/example/Fz_supply_market/${id}`,
          method: 'DELETE'
        }).then(res => {
          this.$message({
            type: 'success',
            message: res.msg,
            onClose: () => {
              this.initData()
            }
          });
        })
      }).catch(() => {
      });
    },
    handelUpload() {
      this.uploadBoxVisible = true
      this.$nextTick(() => {
        this.$refs.UploadBox.init("", "example/Fz_supply_market")
      })
    },
    openSuperQuery() {
      this.superQueryVisible = true
      this.$nextTick(() => {
        this.$refs.SuperQuery.init()
      })
    },
    superQuery(queryJson) {
      this.listQuery.superQueryJson = queryJson
      this.listQuery.currentPage = 1
      this.initData()
    },
    addOrUpdateHandle(row, isDetail) {
      let id = row ? row.enterprisecreditcode : ""
      this.formVisible = true
      this.$nextTick(() => {
        this.$refs.JNPFForm.init(id, isDetail, this.list)
      })
    },
    exportData() {
      this.exportBoxVisible = true
      this.$nextTick(() => {
        this.$refs.ExportBox.init(this.exportList)
      })
    },
    download(data) {
      let query = {...data, ...this.listQuery, ...this.query, menuId: this.menuId}
      request({
        url: `/api/example/Fz_supply_market/Actions/Export`,
        method: 'post',
        data: query
      }).then(res => {
        if (!res.data.url) return
        this.jnpf.downloadFile(res.data.url)
        this.$refs.ExportBox.visible = false
        this.exportBoxVisible = false
      })
    },
    search() {
      this.listQuery.currentPage = 1
      this.listQuery.pageSize = 20
      this.listQuery.sort = "desc"
      this.listQuery.sidx = "creatortime"
      this.initData()
    },
    refresh(isrRefresh) {
      this.formVisible = false
      if (isrRefresh) this.reset()
    },
    reset() {
      this.query = JSON.parse(JSON.stringify(this.queryData))
      this.search()
    },
    reset1() {
      this.query.tableField107_productName = null
      this.query.tableField107_serviceIndustry = null
      this.query.tableField107_productType = null
      this.query.tableField127_serverType = '试点城市细分行业数字化服务资源库服务商'
      this.search()
    },
    reset2() {
      this.query.tableField107_productName = null
      this.query.tableField107_serviceIndustry = null
      this.query.tableField107_productType = null
      this.query.tableField127_serverType = '试点城市细分行业数字化服务后备资源库服务商'
      this.search()
    },
    colseFlow(isrRefresh) {
      this.flowVisible = false
      if (isrRefresh) this.reset()
    },
  }
}
</script>
<style lang="scss" scoped>
#main {
  width: 100%;
  height: 100%;
  background: #F0F4F9;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-template-areas:
  "market market market market";
}

.market {
  grid-area: market;
  background-color: #FFFFFF;
  margin-top: 15px;
  padding: 15px 15px;

  ::v-deep .JNPF-flex-main {
    height: calc(100% - 70px);
  }

  .el-tabs, ::v-deep .el-tab-pane {
    height: 100%;
  }

  ::v-deep .el-tabs__content {
    height: calc(100% - 50px);
  }

  /*  ::v-deep .el-tabs__nav-scroll {
      padding-left: 0px;
    }*/

  ::v-deep .el-tabs__item {
    color: #1890FF !important;
    font-size: 16px;
    padding: 0 30px;
  }

  ::v-deep .el-tabs__item.is-active {
    font-weight: bold;
    font-size: 22px;
  }

  ::v-deep .el-tabs__nav-wrap::after {
    background-color: transparent !important
  }

  ::v-deep .el-tabs__active-bar {
    background-color: #1890FF !important;
    height: 3px;
  }
}

.footer {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-template-areas:
  "footer-main";
  grid-area: footer;
  background: #073C76;
}

.footer-main {
  display: grid;
  grid-template-columns: 0.3fr 2.4fr 0.3fr;
  grid-template-rows: 1fr;
  gap: 0px 20px;
  grid-template-areas:
"footer-left footer-mid footer-right";
  grid-area: footer-main;
  width: 1200px;
  margin: 50px auto 30px auto;
}

.footer-left {
  grid-area: footer-left;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;

  img {
    width: 100px;
  }
}

.footer-right {
  grid-area: footer-right;
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  justify-content: center;
  align-items: center;

  img {
    width: 90px;
  }

  label {
    margin-top: 10px;
    font-size: 12px;
  }
}

.footer-mid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1.4fr 0.8fr 0.8fr;
  gap: 20px 0px;
  grid-template-areas:
  "mid1"
  "mid2"
  "mid3";
  grid-area: footer-mid;
  color: #FFFFFF;

  .mid-info {
    width: 60%;
  }

  a {
    color: #FFFFFF;
    text-decoration: none;
    position: absolute;
    right: 0;
  }
}

.mid1 {
  grid-area: mid1;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 3px;
  padding-bottom: 10px;
  border-bottom: 1px #BBBBBB solid;
}

.mid2 {
  grid-area: mid2;
  display: flex;
  flex-direction: row;
  position: relative;
}

.mid3 {
  grid-area: mid3;
  display: flex;
  flex-direction: row;
  position: relative;
}
</style>
